﻿@using QLDV.Infrastructure.Config
@using QLDV.Infrastructure
@if (Request.IsAuthenticated)
{
     if (Request.IsRole(User,1))
     {
         <label><text>Chào <strong>@Html.Encode(((EnhancedPrincipal) User).Data.TenDangNhap)</strong>!
             [ @Html.ActionLink("Đăng xuất", "LogOff", "Account", new { returnurl = Request.Path.UrlEncode() }, null) ]
             [ @Html.ActionLink("Trang chủ", "Index", "Home") ]</text></label>
             
     }
}
else
{
    <label>[ @Html.ActionLink("Đăng nhập", "LogOn", "Account", new { returnurl = Request.Path.UrlEncode() }, null) ]</label>
}
